/**
 * Copyright &copy; 2012-2016 civet All rights reserved.
 */
package cn.mcsys.myadmin.modules.air.entity;

import cn.mcsys.myadmin.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 工作人员管理Entity
 * @author leopold
 * @version 2018-08-13
 */
public class AirWorker extends DataEntity<AirWorker> {
	
	private static final long serialVersionUID = 1L;
	private AirRidePoint airRidePoint;		// air_ride_pointid对象
	private String name;		// 工作人员名字
	private String idNumber;		// 身份证号
	private String belongUnit;		// 所属单位
	private String phone;		// 电话号
	private String username;		// 工作端用户名
	private String password;		// 工作端密码
	private Date modificationDate;		// 修改时间
	private String note;		// note
	private String lon;		// 经度
	private String lat;		// 维度
	private String interphone;

	public String getInterphone() {
		return interphone;
	}

	public void setInterphone(String interphone) {
		this.interphone = interphone;
	}

	public AirWorker() {
		super();
	}

	public String getLon() {
		return lon;
	}

	public void setLon(String lon) {
		this.lon = lon;
	}

	public String getLat() {
		return lat;
	}

	public void setLat(String lat) {
		this.lat = lat;
	}

	public AirWorker(Integer id){
		super(id);
	}


	public AirRidePoint getAirRidePoint() {
		return airRidePoint;
	}

	public void setAirRidePoint(AirRidePoint airRidePoint) {
		this.airRidePoint = airRidePoint;
	}

	@Length(min=0, max=16, message="工作人员名字长度必须介于 0 和 16 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=32, message="身份证号长度必须介于 0 和 32 之间")
	public String getIdNumber() {
		return idNumber;
	}

	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}
	
	@Length(min=0, max=16, message="所属单位长度必须介于 0 和 16 之间")
	public String getBelongUnit() {
		return belongUnit;
	}

	public void setBelongUnit(String belongUnit) {
		this.belongUnit = belongUnit;
	}
	
	@Length(min=0, max=16, message="电话号长度必须介于 0 和 16 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Length(min=0, max=32, message="工作端用户名长度必须介于 0 和 32 之间")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	
	@Length(min=0, max=255, message="工作端密码长度必须介于 0 和 255 之间")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	public Date getModificationDate() {
		return modificationDate;
	}

	public void setModificationDate(Date modificationDate) {
		this.modificationDate = modificationDate;
	}
	
	@Length(min=0, max=64, message="note长度必须介于 0 和 64 之间")
	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	@Override
	public String toString() {
		return "AirWorker{" +
				"airRidePoint=" + airRidePoint +
				", name='" + name + '\'' +
				", idNumber='" + idNumber + '\'' +
				", belongUnit='" + belongUnit + '\'' +
				", phone='" + phone + '\'' +
				", username='" + username + '\'' +
				", password='" + password + '\'' +
				", modificationDate=" + modificationDate +
				", note='" + note + '\'' +
				", id=" + id +
				'}';
	}
}